import http from "../common/http.js";

/**
 * @des 获取分享员分销排行
 * @param {string} page
 */
export function sharerOrderNum(data, needLoading) {
  return http.GET("/video-shop/sharer-order-num", data, needLoading);
}

/**
 * @des 获取分享员状态
 * @param {number} product_id
 */
export function sharerStatus(data, needLoading) {
  return http.GET("/video-shop/sharer-status", data, needLoading);
}

/**
 * @des 获取分享链接
 * @param {number} product_id
 */
export function sharerLink(data, needLoading) {
  return http.GET("/video-shop/sharer-link", data, needLoading);
}

/**
 * @des 绑定
 * @param {number} sharer_id
 * @param {string} wx_username
 * @param {number} product_id
 */
export function bindSharer(data, needLoading) {
  return http.POST("/video-shop/bind-sharer", data, needLoading);
}

/**
 * @des 获取分享员列表
 */
export function userSharerList(data, needLoading) {
  return http.GET("/video-shop/user-sharer-list", data, needLoading);
}
